package com.mooco.dongba.sys.service;

import com.mooco.dongba.common.pojo.PageObject;
import com.mooco.dongba.sys.pojo.SysUser;
import com.mooco.dongba.sys.pojo.SysUserDeptVo;

import java.util.Map;

public interface SysUserService {
    PageObject<SysUserDeptVo> findPageObject(String username, Integer pageCurrent);

    int valid(Integer id, Integer valid);

    int saveObject(SysUser entity, Integer[] roleIds);

    Map<String, Object> findObjectById(Integer id);

    int updateObject(SysUser entity, Integer[] roleIds);

    int updatePassword(String password, String newPassword, String cfgPassword);
}
